// vite.config.ts
import { dtPlugins } from "file:///E:/%E4%B8%AA%E4%BA%BA/project/lyl-demo/node_modules/@zm-pkg/plugins4/dist/index.cjs";

// proxy.config.ts
var SERVICES = [
  { api: "api-auth", target: "http://10.139.106.28:8082" }
];
var proxy = SERVICES.reduce((allProxy, it) => {
  const api = "/" + it["api"];
  allProxy[api] = {
    target: it["target"],
    secure: false
  };
  return allProxy;
}, {});
var SERVE_CONF = {
  // 监听的ip地址
  host: "localhost",
  // 端口
  port: 5176,
  // 端口被占用时，尝试下一个可用端口
  strictPort: false,
  // 是否启用https
  https: false,
  // 是否在浏览器中打开页面
  open: false,
  // 代理
  proxy
};

// vite.config.ts
var vite_config_default = ({ command, mode }) => {
  return {
    css: {
      preprocessorOptions: {
        less: {
          modifyVars: {
            hack: `true; @import (reference) "./src/styles/antDesign.less";`
          },
          javascriptEnabled: true
        }
      }
    },
    server: SERVE_CONF,
    plugins: [
      dtPlugins({
        isBuild: command === "build"
      })
    ]
  };
};
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAicHJveHkuY29uZmlnLnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZGlybmFtZSA9IFwiRTpcXFxcXHU0RTJBXHU0RUJBXFxcXHByb2plY3RcXFxcbHlsLWRlbW9cIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkU6XFxcXFx1NEUyQVx1NEVCQVxcXFxwcm9qZWN0XFxcXGx5bC1kZW1vXFxcXHZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9FOi8lRTQlQjglQUElRTQlQkElQkEvcHJvamVjdC9seWwtZGVtby92aX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